<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
> warcserver </TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE=" warc-tools version 0.17  A library for data archiving "
HREF="index.html"><LINK
REL="UP"
TITLE=" Detailed utilisation "
HREF="c126.html"><LINK
REL="PREVIOUS"
TITLE=" warcvalidator "
HREF="x186.html"><LINK
REL="NEXT"
TITLE=" warcclient "
HREF="x222.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>warc-tools version 0.17  A library for data archiving</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x186.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Detailed utilisation</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x222.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN206"
>3.5. warcserver</A
></H1
><P
>&#13;        The options -i ,-p,  -x are mandatory when we use warcserver command.
        </P
><P
>&#13;        The  option -i specifies  the listening IP address. When its value is 0.0.0.0 
        you can listen from any IP address.
        </P
><P
>&#13;        The option -p allows to define the listening port. In Unix systems we must have
        the  permissions to listen port bellow 1024.
        </P
><P
>&#13;        The option -x allows to define  directory where  WARC files are stored. The server will look for 
        the WARC files required by the clients in this directory.
        </P
><P
>&#13;        The option -t is optional, it allows to specify working directory.
        </P
><P
>&#13;        The option -s is optional, it is used to define a name for the server. If you do not use this option the server
        name by default is "iipc".
        </P
><P
>&#13;        Here, an example which shows how to start server on port 8080 that listens
        from any IP address. The WARC files in this server are in the directory <TT
CLASS="filename"
>"/home/warcfile"</TT
>
        and we name the server by <CODE
CLASS="parameter"
>"warc_server"</CODE
>
        </P
><DIV
CLASS="example"
><A
NAME="AEN217"
></A
><P
><B
>Example 3-9.  How to use the warcserver command. </B
></P
><PRE
CLASS="screen"
>&#13;<SAMP
CLASS="prompt"
>mohamed@mohamed-desktop:~$ </SAMP
><KBD
CLASS="userinput"
> warcserver -i 0.0.0.0 -p 8080 -x /home/warcfile \
                                 -t /tmp/ -s  warc_server</KBD
>
        </PRE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x186.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x222.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>warcvalidator</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c126.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>warcclient</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>